import request from '@/utils/request'

// 查询验收列表
export function listSheet(query) {
  return request({
    url: '/crm/sheet/list',
    method: 'get',
    params: query
  })
}

// 查询验收详细
export function getSheet(id) {
  return request({
    url: '/crm/sheet/' + id,
    method: 'get'
  })
}

// 新增验收
export function addSheet(data) {
  return request({
    url: '/crm/sheet',
    method: 'post',
    data: data
  })
}

// 修改验收
export function updateSheet(data) {
  return request({
    url: '/crm/sheet',
    method: 'put',
    data: data
  })
}

// 删除验收
export function delSheet(id) {
  return request({
    url: '/crm/sheet/' + id,
    method: 'delete'
  })
}


// 获取项目验收数据
export function getCrmAcceptanceSheetInfo(projectId) {
  return request({
    url: '/crm/sheet/getCrmAcceptanceSheetInfo/'+projectId,
    method: 'get',
   
  })
}
// 审核
export function audit(data) {
  return request({
    url: '/crm/sheet/audit',
    method: 'post',
    data: data
  })
}